package ruifight.member.dao;

import ruifight.member.dao.base.BaseMapper;
import ruifight.member.model.IntegralRecord;
import ruifight.member.model.IntegralRecordExample;

import java.util.List;
import java.util.Map;

public interface IntegralRecordMapper extends BaseMapper<IntegralRecord, IntegralRecordExample, Long> {

    /**
     * 通过会员Id获取积分记录
     * @param paramMap
     * @return
     */
    public List<IntegralRecord> getIntegralRecordList(Map<String, String> paramMap);

    /**
     * 获取所有会员积分记录
     * @param paramMap
     * @return
     */
    public List<IntegralRecord> getIntegralRecordAllList(Map<String, String> paramMap);

    /**
     * 获取会员总消费积分
     * @return
     */
    public int getConsumptionIntegral(Map<String, String> paramMap);
}
